const mos = require('./connect');

// 创建文档结构
let studentsSchema = new mos.Schema({
    name:String,
    age:Number,
    sex:String,
    score:Number,
    class:String
})

// 将结构应用到集合中- 创建出模型对象
let stuModel = mos.model('students',studentsSchema);

module.exports = stuModel;